package com.forever7776.life.core.common.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * 用户博客类型
 * </p>
 *
 * @author kz
 * @date 2018-03-02
 */
public class UserBlogTypeEnum {

    public final static Map<Integer, String> USER_BLOG_TYPE_MAP = new HashMap<>();

    public enum TYPE {
        SYSTEM(0, "系统推荐"),
        READ(1, "阅读排行榜"),
        COLLECT(2, "收藏排行榜"),
        PRAISE(3, "点赞排行榜"),
        NEWEST(4, "最新博客");

        private Integer code;
        private String desc;

        public Integer getCode() {
            return code;
        }

        public void setCode(Integer code) {
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        TYPE(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }
    }

    static {
        for (TYPE t : TYPE.values()) {
            USER_BLOG_TYPE_MAP.put(t.getCode(), t.getDesc());
        }
    }


}
